#include<iostream>
#include<cmath>
using namespace std;

bool check(int n)
{
    if (n == 2) return true;
    for (int i = 2; i <= sqrt(n); i++)
        if (n % i == 0) return false;
    return true;
}
int main()
{
    int n = 0, cnt = 0;
    cin >> n;
    for (int i = 2; i <= n; i++)
        if (n % i == 0 && check(i)) cnt++;
    cout << cnt << endl;
    return 0;
}